package main

import (
	"os"
	"os/signal"
	"syscall"
	"time"
)

func main() {
	sigs := make(chan os.Signal, 1)
	signal.Notify(sigs, syscall.SIGHUP)

	go runApplicationLogic()

	<-sigs
	restartOrGracefulShutdown()
}

func runApplicationLogic() {
	for {
		time.Sleep(time.Second)
	}
}
func restartOrGracefulShutdown() {
	os.Exit(0)
}
